package com.erp.mm.service;

import com.erp.mm.entity.TMmSogiHeadEntity;
import com.erp.mm.entity.TMmSogiItemEntity;
import org.jeecgframework.core.common.service.CommonService;

import java.util.List;

public interface TMmSogiHeadServiceI extends CommonService {
	
 	public <T> void delete(T entity);
	/**
	 * 添加一对多
	 * 
	 */
	public void addMain(TMmSogiHeadEntity tMmSogiHead,
                        List<TMmSogiItemEntity> tMmSogiItemList) ;
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(TMmSogiHeadEntity tMmSogiHead,
                           List<TMmSogiItemEntity> tMmSogiItemList);
	public void delMain(TMmSogiHeadEntity tMmSogiHead);
	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(TMmSogiHeadEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(TMmSogiHeadEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(TMmSogiHeadEntity t);
}
